package shiyl.use.springboot.loadbalance;

/**
 * 对Endpoint的负载均衡适配器
 * 把E适配为一个可负载均衡的对象
 * @param <E>
 */
public interface ILoader<E> {

    public String getUrl();

    public int getWeight();

    public boolean isSticky();

    public boolean isAvailable();

    public E getEndpoint();
}
